package com.java.userservice.dao;

import com.java.common.dao.BaseMapper;
import com.java.userservice.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {

    User login(User user);

    /**
     * 返回技师用户
     * @return
     */
    List<User> userRole(User user);

    /**
     * 传入id集合返回数据
     * @param id
     * @return
     */
    List<User> listByIds(List<Integer> id);
}
